package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HoSo_DiemXetTuyen")
public class Tbl_QLDTTXA_HoSo_DiemXetTuyen implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HoSoXetTuyen hoSoId = null;
   private Tbl_QLDTTXA_DM_ThangDiem thangDiemId = null;
   private Boolean co;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="HoSoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HoSoXetTuyen_tbl_QLDTTXA_HoSo_DiemXetTuyen")
   public Tbl_QLDTTXA_HoSoXetTuyen getHoSoId() {
	    return hoSoId;
   }
   public void setHoSoId(Tbl_QLDTTXA_HoSoXetTuyen hoSoId) {
	    this.hoSoId=hoSoId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ThangDiemId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_ThangDiem_tbl_QLDTTXA_HoSo_DiemXetTuyen")
   public Tbl_QLDTTXA_DM_ThangDiem getThangDiemId() {
	    return thangDiemId;
   }
   public void setThangDiemId(Tbl_QLDTTXA_DM_ThangDiem thangDiemId) {
	    this.thangDiemId=thangDiemId;
   }

   public Boolean getCo() {
   	return co;
   }
   public void setCo(Boolean co) {
   	this.co= co;
   }
}//endClass 

